//
//  AYAdaptiveTextView.h
//  AYWrapTextView
//
//  Created by AY on 16/6/24.
//  Copyright © 2016年 Jasperay. All rights reserved.
//

#import <UIKit/UIKit.h>
@class AYAdaptiveTextView;

@protocol AYAdaptiveTextViewDelegate <UITextViewDelegate>

// 监听输入框内的文字变化
- (void)AYAdaptiveTextView:(AYAdaptiveTextView *)AYAdaptiveTextView textDidChanged:(NSString *)text;

@end

@interface AYAdaptiveTextView : UITextView

/** 占位文字 */
@property (nonatomic, copy) NSString *placeholder;

/** 占位文字颜色 */
@property (nonatomic, strong) UIColor *placeholderColor;

/** 占位文字的起始位置 */
@property (nonatomic, assign) CGPoint placeholderLocation;

/** textView是否可伸长 */
@property (nonatomic, assign) BOOL isCanExtend;

/** 伸长限制行数 */
@property (nonatomic, assign) NSUInteger extendLimitRow;

@property (nonatomic, weak) id<AYAdaptiveTextViewDelegate> delegate;


@end
